package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("air_compressor_samsung")
public class AirCompressorSamsung extends Model<AirCompressorSamsung> {

    private static final long serialVersionUID = 1L;

    @TableId("machine_ip")
    private String machineIp;
    /**
     * 机器编号
     */
    @TableField("machine_id")
    private String machineId;

    private Integer company;

    private Integer workshop;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * 空压机机准备就绪
     */
    @TableField("compressor_ready")
    private Integer compressorReady;

    /**
     * 全部警告
     */
    @TableField("total_warning")
    private Integer totalWarning;

    /**
     * 总跳闸故障
     */
    @TableField("total_trip_fault")
    private Integer totalTripFault;

    /**
     * 压缩机运行停止
     */
    @TableField("compressor_run_stop")
    private Integer compressorRunStop;

    /**
     * 油热机开启
     */
    @TableField("oil_heater_on")
    private Integer oilHeaterOn;

    /**
     * 辅助油泵打开
     */
    @TableField("auxiliary_oil_pump_on")
    private Integer auxiliaryOilPumpOn;

    /**
     * 卸载/自动加载软件
     */
    @TableField("unload_autoload_s_w")
    private Integer unloadAutoloadSW;

    /**
     * 卸载/加载
     */
    @TableField("unload_load")
    private Integer unloadLoad;

    /**
     * 本地/远程
     */
    @TableField("local_remote")
    private Integer localRemote;

    /**
     * 压缩机准备就绪
     */
    @TableField("common_shutdown_on")
    private Integer commonShutdownOn;

    /**
     * 驱动电机未完全停止
     */
    @TableField("drive_motor_not_fully_stopper")
    private Integer driveMotorNotFullyStopper;

    /**
     * 供油压力低
     */
    @TableField("oil_supply_pressure_low")
    private Integer oilSupplyPressureLow;

    /**
     * 供油温度低
     */
    @TableField("oil_supply_temperature_low")
    private Integer oilSupplyTemperatureLow;

    /**
     * 急停按钮按下
     */
    @TableField("emergency_stop_button_pressed")
    private Integer emergencyStopButtonPressed;

    /**
     * 控制器异常
     */
    @TableField("controller_error")
    private Integer controllerError;

    /**
     * igv不在预定位置
     */
    @TableField("igv_not_pre_position")
    private Integer igvNotPrePosition;

    /**
     * bov不在预定位置
     */
    @TableField("bov_not_pre_position")
    private Integer bovNotPrePosition;

    /**
     * 排出止回阀故障
     */
    @TableField("discharge_check_valve_failure")
    private Integer dischargeCheckValveFailure;

    /**
     * 控制器信号故障
     */
    @TableField("controller_signal_failure")
    private Integer controllerSignalFailure;

    /**
     * 远程停止按钮按下
     */
    @TableField("remote_stop_button_pressed")
    private Integer remoteStopButtonPressed;

    /**
     * 按下正常停止按钮
     */
    @TableField("normal_stop_button_pressed")
    private Integer normalStopButtonPressed;

    /**
     * 激增报警
     */
    @TableField("surge_alarm")
    private Integer surgeAlarm;

    /**
     * 控制器异常
     */
    @TableField("controller_error1")
    private Integer controllerError1;

    /**
     * 油位低报警
     */
    @TableField("oil_level_alarm")
    private Integer oilLevelAlarm;

    /**
     * 辅助油泵跳闸
     */
    @TableField("aux_oil_pump_trip")
    private Integer auxOilPumpTrip;

    /**
     * 供油压力低报警
     */
    @TableField("oil_supply_pressure_low_alarm")
    private Integer oilSupplyPressureLowAlarm;

    /**
     * 振动1级高报警
     */
    @TableField("vibration_stage_1_high_alarm")
    private Integer vibrationStage1HighAlarm;

    /**
     * 振动2级高报警
     */
    @TableField("vibration_stage_2_high_alarm")
    private Integer vibrationStage2HighAlarm;

    /**
     * 电机电流报警
     */
    @TableField("motor_current_alarm")
    private Integer motorCurrentAlarm;

    /**
     * 供油温度高报警
     */
    @TableField("oil_supply_temperature_high_alarm")
    private Integer oilSupplyTemperatureHighAlarm;

    /**
     * 2级进口温度高报警
     */
    @TableField("stage2_inlet_temperature_high_alarm")
    private Integer stage2InletTemperatureHighAlarm;

    /**
     * 油箱温度低报警
     */
    @TableField("oil_reservoir_temperature_low_alarm")
    private Integer oilReservoirTemperatureLowAlarm;

    /**
     * 电机线圈“R”温度高报警
     */
    @TableField("motor_coil_r_temperature_high_alarm")
    private Integer motorCoilRTemperatureHighAlarm;

    /**
     * 放电检查v/v报警
     */
    @TableField("discharge_check_vv_alarm")
    private Integer dischargeCheckVvAlarm;

    /**
     * 预喘振警报
     */
    @TableField("pre_surge_alarm")
    private Integer preSurgeAlarm;

    /**
     * 油热机跳闸
     */
    @TableField("oil_heater_trip")
    private Integer oilHeaterTrip;

    /**
     * rdt信号错误
     */
    @TableField("rtd_signal_fault")
    private Integer rtdSignalFault;

    /**
     * 模拟信号故障
     */
    @TableField("analog_signal_fault")
    private Integer analogSignalFault;

    /**
     * 激增关闭
     */
    @TableField("surge_shutdown")
    private Integer surgeShutdown;

    /**
     * 油位低关闭
     */
    @TableField("oil_level_shutdown")
    private Integer oilLevelShutdown;

    /**
     * 供油压力低危险
     */
    @TableField("oil_supply_pressure_low_danger")
    private Integer oilSupplyPressureLowDanger;

    /**
     * 振动1级高危险
     */
    @TableField("vibration_stage_1_high_danger")
    private Integer vibrationStage1HighDanger;

    /**
     * 振动2级高危险
     */
    @TableField("vibration_stage_2_high_danger")
    private Integer vibrationStage2HighDanger;

    /**
     * 2级进口温度高危险
     */
    @TableField("oil_supply_temperature_high_danger")
    private Integer oilSupplyTemperatureHighDanger;

    /**
     * 2级进口温度高危险
     */
    @TableField("stage2_inlet_temperature_high_danger")
    private Integer stage2InletTemperatureHighDanger;

    /**
     * 电机线圈“R”温度高危险
     */
    @TableField("motor_coil_r_temperature_high_danger")
    private Integer motorCoilRTemperatureHighDanger;

    /**
     * 电机轴承"DE"温度过高危险
     */
    @TableField("motor_bearing_de_temperature_high_danger")
    private Integer motorBearingDeTemperatureHighDanger;

    /**
     * 电机轴承"NDE"温度过高危险
     */
    @TableField("motor_bearing_nde_temperature_high_danger")
    private Integer motorBearingNdeTemperatureHighDanger;

    /**
     * 电机启动面板无响应
     */
    @TableField("motor_start_panel_no_response")
    private Integer motorStartPanelNoResponse;

    /**
     * 关闭电源
     */
    @TableField("shut_power_off")
    private Integer shutPowerOff;

    /**
     * 远程停止命令
     */
    @TableField("remote_stop_command_do")
    private Integer remoteStopCommandDo;

    /**
     * 远程启动失败
     */
    @TableField("remote_start_failure")
    private Integer remoteStartFailure;

    /**
     * 本地n停止命令
     */
    @TableField("local_n_stop_command")
    private Integer localNStopCommand;

    /**
     * 本地e停止命令
     */
    @TableField("local_e_stop_command")
    private Integer localEStopCommand;

    /**
     * 交流心跳
     */
    @TableField("communication_hearbeat")
    private Float communicationHearbeat;

    /**
     * igv_打开
     */
    @TableField("igv_position_open")
    private Float igvPositionOpen;

    /**
     * bov_关闭
     */
    @TableField("bov_position_closed")
    private Float bovPositionClosed;

    /**
     * 系统压力
     */
    @TableField("system_pressure")
    private Float systemPressure;

    /**
     * 二级排放压力
     */
    @TableField("stage_2_discharge_pressure")
    private Float stage2DischargePressure;

    /**
     * 供油压力
     */
    @TableField("oil_supply_pressure")
    private Float oilSupplyPressure;

    /**
     * 一级振动
     */
    @TableField("stage_1_vibration")
    private Float stage1Vibration;

    /**
     * 二级振动
     */
    @TableField("stage_2_vibration")
    private Float stage2Vibration;

    /**
     * 电机电流
     */
    @TableField("motor_current")
    private Float motorCurrent;

    /**
     * 供油温度
     */
    @TableField("oil_supply_temperature")
    private Float oilSupplyTemperature;

    /**
     * 二级入口温度
     */
    @TableField("stage_2_inlet_temperature")
    private Float stage2InletTemperature;

    /**
     * 储油器温度
     */
    @TableField("oil_reservoir_temperature")
    private Float oilReservoirTemperature;

    /**
     * 电机绕组"R"温度
     */
    @TableField("motor_winding_r_teperature")
    private Float motorWindingRTeperature;

    /**
     * 电机线圈"DE"温度
     */
    @TableField("motor_bearing_de_temperature")
    private Float motorBearingDeTemperature;

    /**
     * 电机线圈"NDE"温度
     */
    @TableField("motor_bearing_nde_temperature")
    private Float motorBearingNdeTemperature;

    /**
     * 运行时间
     */
    @TableField("compressor_runtime")
    private Float compressorRuntime;

    /**
     * 压缩机加载时间
     */
    @TableField("compressor_load_time")
    private Float compressorLoadTime;

    /**
     * 设定点
     */
    @TableField("set_point")
    private Float setPoint;

    /**
     * 卸载设置点
     */
    @TableField("unload_set_point")
    private Float unloadSetPoint;

    /**
     * 重载设置点
     */
    @TableField("reload_set_point")
    private Float reloadSetPoint;

    /**
     * 电机最小电流
     */
    @TableField("motor_min_ampere")
    private Float motorMinAmpere;

    /**
     * 电机最大电流
     */
    @TableField("motor_max_ampere")
    private Float motorMaxAmpere;

    /**
     * 远程启动命令
     */
    @TableField("remote_start_command")
    private Integer remoteStartCommand;

    /**
     * 远程停止命令
     */
    @TableField("remote_stop_command_di")
    private Integer remoteStopCommandDi;

    /**
     * 远程加载命令
     */
    @TableField("remote_load_command")
    private Integer remoteLoadCommand;

    /**
     * 远程卸载命令
     */
    @TableField("remote_unload_command")
    private Integer remoteUnloadCommand;

    /**
     * 远程重置命令
     */
    @TableField("remote_reset_command")
    private Integer remoteResetCommand;

    /**
     * 远程设置点
     */
    @TableField("remote_set_point")
    private Integer remoteSetPoint;

    /**
     * 远程卸载设置点
     */
    @TableField("remote_unload_set_point")
    private Integer remoteUnloadSetPoint;

    /**
     * 远程重载设置点
     */
    @TableField("remote_reload_set_point")
    private Integer remoteReloadSetPoint;



    @Override
    protected Serializable pkVal() {
        return this.machineIp;
    }

}
